import VueRouter from 'vue-router'
import Home from '@/views/Home'
import Vue from "vue";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'home'
  },
  {
    path: '/home',
    component: Home
  },
]

const router = new VueRouter({
  routes,
  mode:'history'
})

export default router// 暴露出去
